home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1973 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: res.com!usenet
  2. From: danlynes@res.com
  3. Newsgroups: comp.lang.c
  4. Subject: Re: renaming file names from within C!
  5. Date: 18 Jan 1996 04:20:37 GMT
  6. Organization: RES Online
  7. Message-ID: <4dkhql$4sb@clare.res.com>
  8. References: <4dh7sb$6de@hammerhead.dadd.ti.com>
  9. Reply-To: danlynes@res.com
  10. NNTP-Posting-Host: di005.res.com
  11. X-Newsreader: IBM NewsReader/2 v1.2.5
  12.  
  13. In <4dh7sb$6de@hammerhead.dadd.ti.com>, Sudheer Vemulapalli <sudheer@dadd.ti.com> writes:
  14.  
  15. >How can i move/rename a file in the UNIX system from within a C program.
  16. >
  17. >Suppose i have two strings "a" and "b".
  18. >
  19. >char *a, *b;
  20.  
  21. int rc ;
  22.  
  23. rc = rename( a, b ) ;  /* ANSI */
  24.  
  25. +------------------------------------------------------+
  26. !  OS/2         - The Champion of Operating Systems    !
  27. !  Enitharmon/2 - A Powerful BBS Package               !
  28. !  What a great pair!               danlynes@res.com   !
  29. !  www.res.com/~danlynes/index.html                    !
  30. !  www.res.com/~danlynes/Enitharmon!2/index.html       !
  31. !  The Enitharmon Beta project is now under way.       !
  32. !  To subscribe to the mailing list, send e-mail to    !
  33. !  danlynes@res.com or daniel.lynes@ideasnet.com       !
  34. +------------------------------------------------------+
  35.  
  36.